﻿<%@ Page Language="C#" MasterPageFile="~/admin_cms/admin_master.master" AutoEventWireup="true"
    CodeFile="Dev_advertis_banner.aspx.cs" Inherits="admin_cms_Dev_advertis_banner"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="all_khung_form1">
        <div class="top_khung_form1">
            <h5>
                Quản lý quảng cáo</h5>
        </div>
        <div class="khung_form1">
            <h3>
                Tiêu đề quảng cáo:
            </h3>
            <asp:TextBox ID="txttile" runat="server" class="txtform"></asp:TextBox>
        </div>
        <div class="khung_form1">
            <h3>
                Liên kết ngoài :
            </h3>
            <asp:TextBox ID="txtredirect" runat="server" class="txtform"></asp:TextBox>
        </div>
        <div class="khung_form1">
            <h3>
                Topic liên kết:
            </h3>
            <asp:DropDownList ID="drMenu" runat="server" Height="25px" Width="306px" class="txtform">
            </asp:DropDownList>
        </div>
        <div class="khung_form1">
            <h3>
                Trang hiển thị:
            </h3>
            <asp:DropDownList ID="DrlLinkPage" runat="server" Height="25px" Width="306px" class="txtform">
            </asp:DropDownList>
        </div>
        <div class="khung_form1">
            <h3>
                Chọn ảnh quảng cáo:
            </h3>
            <asp:FileUpload ID="fulImage_Qc" runat="server" />
            <asp:RegularExpressionValidator ID="regexValidateImageFil" Font-Size="11px" runat="server"
                ControlToValidate="fulImage_Qc" ErrorMessage="File được chọn không phải file ảnh hoặc flash bạn vui lòng chọn file khác."
                ValidationExpression="^([0-9a-zA-Z_\-~ :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG|.swf)$">
            </asp:RegularExpressionValidator>
        </div>
        <div class="khung_form1">
            <asp:Button ID="Button1" runat="server" Text="Thêm mới" OnClick="bt_them_advertis_banner" />
            <asp:Button ID="Button2" runat="server" Text="Update" OnClick="bt_sua_advertis_banner" />
        </div>
    </div>
    <%-- <div class="all_khung_form2">
        <div class="box grid_16 round_all">
            <h2 class="box_head grad_colour round_top">
                Tiny Editor</h2>
            <a href="#" class="grabber">&nbsp;</a> <a href="#" class="toggle">&nbsp;</a>
            <div class="block no_padding">
                <textarea id="tiny_input"></textarea>
            </div>
        </div>

        <script type="text/javascript">
			new TINY.editor.edit('editor',{
				id:'tiny_input',
				height:200,
				cssclass:'te',
				controlclass:'tecontrol',
				rowclass:'teheader',
				dividerclass:'tedivider',
				controls:['bold','italic','underline','strikethrough','|','subscript','superscript','|',
						  'orderedlist','unorderedlist','|','outdent','indent','|','leftalign',
						  'centeralign','rightalign','blockjustify','|','unformat','|','undo','redo','n','image','hr','link','unlink','|','cut','copy','paste','print','|','font','size','style'],
				footer:false,
				fonts:['Arial','Verdana','Georgia','Trebuchet MS'],
				xhtml:true,
				cssfile:'style.css',
				bodyid:'editor',
				footerclass:'tefooter',
				toggle:{text:'source',activetext:'wysiwyg',cssclass:'toggler'},
				resize:{cssclass:'resize'}
			});
        </script>

    </div>
    --%>
    <div class="all_khung_form3">
        <div class="griv_content">
            <asp:GridView ID="Griv_Banner" runat="server" CssClass="mGrid" PagerStyle-CssClass="pgr"
                Font-Size="11px" AutoGenerateColumns="false" AlternatingRowStyle-BackColor="#DFE2E4"
                OnRowCommand="news_grAll_click">
                <Columns>
                    <asp:BoundField HeaderText="Tiêu đề" DataField="Title" />
                    <asp:BoundField HeaderText="Link QC ngoài" DataField="hyperlink" />
                    <asp:BoundField HeaderText="Top_Pic" DataField="link_web" />
                    <asp:BoundField HeaderText="Trang hiển thị" DataField="link_page" />
                     <asp:TemplateField HeaderText="Ảnh" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" Enabled="false" Checked='<%# Eval("isimage") %>'  />
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="Flash" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                           <asp:CheckBox ID="CheckBox2" runat="server" Enabled="false"  Checked='<%#Eval("isflash") %>' />
                        </ItemTemplate>
                     
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="TOP" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lktop" Width="16px" CommandArgument='<%#Eval("id")+"|top|"+Eval("istop") %>'
                                CssClass='<%#test_browrs_menu(Convert.ToBoolean(Eval("istop"))) %>' ToolTip='Click to Allow or Deny'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="HOT" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkhot" Width="16px" CommandArgument='<%#Eval("id")+"|hot|"+Eval("ishot") %>'
                                CssClass='<%#test_browrs_menu(Convert.ToBoolean(Eval("ishot"))) %>' ToolTip='Click to Allow or Deny'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Duyệt" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkbrowrs" Width="16px" CommandArgument='<%#Eval("id")+"|browrs|"+Eval("status") %>'
                                CssClass='<%#test_browrs_menu(Convert.ToBoolean(Eval("status"))) %>' ToolTip='Click to Allow or Deny'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Ngày tạo" DataField="createtime" />
                    <asp:BoundField HeaderText="Người tạo" DataField="createby" />
                    <asp:BoundField HeaderText="Người sửa" DataField="updateby" />
                    <asp:BoundField HeaderText="Giờ sửa " DataField="updatetime" />
                    <asp:BoundField HeaderText="Người hủy " DataField="endby" />
                    <asp:BoundField HeaderText="Giờ hủy " DataField="endtime" />
                </Columns>
                <Columns>
                    <asp:TemplateField HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                             <asp:LinkButton runat="server" ID="lkupdate" Width="16px" CommandArgument='<%#Eval("id")+"|edit|0" %>'>
                                <img src="style/cssTran/img/write_16.png" title="Click for Edit" /></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkdelete" Width="16px" CommandArgument='<%#Eval("id")+"|delete|0" %>'>
                            <img alt='' src='style/cssTran/img/close_16.png' title='Click to Delete' /></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
